package com.mhc.haval.manager;

import com.subaru.common.query.PageResult;
import com.mhc.haval.dal.model.AuditQuotaDO;
import com.mhc.haval.dal.query.AuditQuotaQuery;

import java.util.List;


/**
 * Manager for AuditQuota.
 */
public interface AuditQuotaManager {
    /**
     * query count by query condition.
     */
    int countByQuery(AuditQuotaQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(AuditQuotaQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(AuditQuotaDO record);

    /**
     * insert selective.
     */
    long insertSelective(AuditQuotaDO record);

    /**
     * select by query condition.
     */
    List<AuditQuotaDO> selectByQuery(AuditQuotaQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<AuditQuotaDO> selectByQueryWithPage(AuditQuotaQuery query);

    /**
     * select by primary key.
     */
    AuditQuotaDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( AuditQuotaDO record,  AuditQuotaQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(AuditQuotaDO record, AuditQuotaQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(AuditQuotaDO record);
}